//
//  SAPFindWebViewController.m
//  CarsHome
//
//  Created by dapeng on 15/12/7.
//  Copyright © 2015年 dapeng. All rights reserved.
//

#import "SAPFindWebViewController.h"

@interface SAPFindWebViewController ()

@end

@implementation SAPFindWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    NSURL *url = [NSURL URLWithString:_murl];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_SIZE.width, SCREEN_SIZE.height)];
    webView.backgroundColor = [UIColor redColor];
    [webView loadRequest:request];
    webView.scalesPageToFit = YES;
    webView.delegate = self;
    [self.view addSubview:webView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
